<template>
	<view>
		<u-navbar title="账号管理"></u-navbar>
		<u-button class="u-m-t-20 u-m-l-50 u-m-r-50" type="primary" @click="show=true">退出登录</u-button>
		<u-modal v-model="show" content="确认退出登录吗？" @confirm="exitLogin()" show-cancel-button></u-modal>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false
			}
		},
		methods: {
			exitLogin() {
				uni.removeStorageSync("authorization");
				uni.reLaunch({
					url: "../index/index"
				});
			}
		}
	}
</script>

<style>

</style>
